import { ILog } from '@/interface';
import { $get, $post, $put, $delete } from '@/request/api';

export function fetchLogList(params) {
  return $get('/log/list',params);
}

export function fetchCreateLog(data: ILog) {
  return $post('/log/create',data);
}

export function fetchUpdateLog(data: ILog) {
  return $put(`/log/update/${data.id}`,data);
}

export function fetchDeleteLog(id: number) {
  return $delete(`/log/delete/${id}`);
}
